<?php
if(!defined('InEmpireCMS'))
{
	exit();
}

//表前缀
if(!defined('InEmpireCMS'))
{$user_tbpre="phome_";}
else
{$user_tbpre=$dbtbpre;}

//---------------------- 下面开始会员相关设置 ----------------------
class say{
	public $db;
	function say($adb=""){
		global $empire,$dbtbpre;
		if($adb){
			$this->$db=$adb;
		}else{
			if(!$empire){
				$link=db_connect();
				$empire=new mysqlquery();
			}
			$this->db=$empire;
		}
	}
	function add($d){
		global $dbtbpre;
		$sql=bulidInsertStr("{$dbtbpre}jatsay",$d);
		//echo $sql;
		$r=$this->db->query($sql);
		return $r;
	}
	function getLastOne(){
		global $dbtbpre;
		$sql="SELECT * FROM {$dbtbpre}jatsay WHERE 1 order by id desc LIMIT 1";		
		return $this->db->fetch1($sql);
	}
}
?>